package cn.xpg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xpg.entity.Supplier;

public interface SupplierMapper {
	// 新增供应商
	public int addSupplier(Supplier supplier);

	// 删除供应商
	public int deleteSupplier(@Param("supplier_id") int supplier_id);

	// 查询供应商
	public List<Supplier> getSupplierList(@Param("supplier_name") String supplier_name,
			@Param("currentPageNo") int currentPageNo, @Param("pageSize") int pageSize);

	// 查询供应商行数
	public Object getSupplierCount(@Param("supplier_name") String supplier_name);
	
	// 获取供应商Id
	public Supplier getSupplierId(@Param("supplier_id") int supplier_id);

	// 修改供应商
	public int updateSupplier(Supplier supplier);
}
